<%@page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
  	<meta charset="utf-8">
  	<title>登录</title>
  	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
  	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <link rel="stylesheet" href="asserts/resource/css/layui.css"/>
  	<link rel="stylesheet" href="asserts/resource/css/login.css"/>
</head>
<body>
	<div class="login">
		<h4>登录</h4>
		<form action="login" method="post" class="layui-form form" onsubmit="return validateCode();">
			<div class="user-name layui-form-item">
				<i class="layui-icon">&#xe60c;</i>
				<input name="username" placeholder='用户名' maxlength="16" required lay-verify="required" placeholder="用户名" autocomplete="off" class="layui-input" />
			</div>
			<div class="password layui-form-item">
				<i class="layui-icon">&#xe60c;</i>
				<input name="password" placeholder='密码' maxlength="16" type="password" required lay-verify="required" placeholder="密码" autocomplete="off" class="layui-input" />
			</div>
			<div class="validate-num layui-form-item">
				<i class="layui-icon">&#xe60c;</i>
				<input name="code" placeholder='验证码' maxlength="4" required lay-verify="required" placeholder="验证码" autocomplete="off" id="input-code" class="layui-input" />
				<span id="validate-code" class="validate-code" title="点击切换"></span>
			</div>
			<div class="layui-form-item">
		      	<button class="layui-btn submit" lay-submit lay-filter="formDemo">提交</button>
		      	<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</form>
	</div>
	<script src="asserts/resource/js/layui.js"></script>
	<script src="asserts/resource/js/login.js"></script>
</body>
</html>